package com.itheima.service.impl;

import com.itheima.mapper.OperateLogMapper;
import com.itheima.pojo.OperateLog;
import com.itheima.pojo.PageResult;
import com.itheima.pojo.Result;
import com.itheima.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperateLogServiceImpl implements OperateLogService {
    @Autowired
    private OperateLogMapper operateLogMapper;

    @Override
    public Result page(Integer page, Integer pageSize) {
//        PageHelper.startPage(page,pageSize);
//        List<OperateLog> operateLogs = operateLogMapper.list();
//        Page<OperateLog> p = (Page<OperateLog>) operateLogs;
//        return Result.success(new PageResult(p.getTotal(),p.getResult()));
        return null;
    }
}
